package com.mo.service;

import com.github.pagehelper.PageInfo;
import com.mo.model.TUser;
import com.mo.query.UserQuery;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 * @author mo
 * version
 */
public interface UserService extends UserDetailsService {
    PageInfo<TUser> getUserByPage(Integer current);

    TUser getUserDetailById(Integer id);


    int saveUserQuery(UserQuery userQuery);

    int update(UserQuery userQuery);

    int deleteUserById(Integer id);

    int batchDelUserByIds(List<String> idList);

    List<TUser> getOwnerList();

   String selectPasswordById(Integer id);


    int updatePassword(TUser user);
}
